<PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YUI IO Instance Tests</title>
</head>

<body class="yui3-skin-sam">
<h1>YUI IO Instance Tests</h1>

<script type="text/javascript" src="../../../build/yui/yui.js"></script>
<script type="text/javascript">

(function() {
    YUI({
        base: "../../../build/",
        filter: "debug",
        logExclude: {
            attribute: true,
            dom: true,
            node: true,
            event: true,
            base: true,
            widget: true,
            selector: true,
            io:true
        },
        useConsole: true
    }).use("test", "console", "io-base", function(Y) {

        var console = new Y.Console().render();

        var io_static_test = new Y.Test.Case({
            name: 'Static Instance of Y.IO',

            'test': function() {
            	var instance1 = new Y.IO(),
					static1 = Y.io('get.php?test=static', {});
				
				Y.Assert.areEqual(instance1._uid, static1.io._uid);
            }
        });

        var io_instance_test = new Y.Test.Case({
            name: 'Compare IO Instances',

            'test': function() {
            	var instance1 = new Y.IO(),
					instance2 = new Y.IO();

				Y.Assert.areNotEqual(instance1, instance2);
            }
        });

        var io_object_test = new Y.Test.Case({
            name: 'IO Instance is an Object',

            'test': function() {
            	var instance1 = new Y.IO();
				
				Y.Assert.isObject(instance1);
            }
        });

        var io_instanceof_test = new Y.Test.Case({
            name: 'Instance of Y.IO',

            'test': function() {
            	var instance1 = new Y.IO();
				
				Y.Assert.isInstanceOf(Y.IO, instance1);
            }
        });

	Y.Test.Runner.add(io_static_test);
	Y.Test.Runner.add(io_instance_test);
	Y.Test.Runner.add(io_object_test);
	Y.Test.Runner.add(io_instanceof_test);
	Y.Test.Runner.run();
});
})();
</script>
</body>
</html>
